<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        #main {
            width: 600px;
            height: 600px;
            margin: 20px auto;
            border: 1px solid red;
        }
    </style>
</head>
<body>
    <div id="main"></div>
    <script src="https://cdn.bootcdn.net/ajax/libs/echarts/5.0.2/echarts.js"></script>
    <script>
        const myChart = echarts.init(document.getElementById('main'))
        var option = { xAxis: { type: 'category', data: ['小明', '小红', '小王'] },yAxis: { type: 'value' },series: [ { name: '语文', type: 'bar', data: [70, 92, 87], } ],title:{show:true,text:'语文成绩',link:'http://baidu.com',textStyle:{color:'teal',fontSize:'24px'}} }
        myChart.setOption(option)
    </script>
</body>
</html>